package com.design.factory.AbstractFactory;

public class MainTestAbstract {
 
	public static void main(String[] args) {

		System.out.println("------组装开始----------");

		PizzaStore nyStore = new PizzaStoreNY();				//披萨店 + 纽约

		Pizza pizza = nyStore.orderPizza("cheese");		//披萨店 + 纽约 + 奶酪
		System.out.println("Ethan ordered a " + pizza + "\n");
		pizza = nyStore.orderPizza("clam");
		System.out.println("Ethan ordered a " + pizza + "\n");	//披萨店 + 纽约 + 蛤蜊
		pizza = nyStore.orderPizza("pepperoni");
		System.out.println("Ethan ordered a " + pizza + "\n");	//披萨店 + 纽约 + 蔬菜
		pizza = nyStore.orderPizza("veggie");
		System.out.println("Ethan ordered a " + pizza + "\n");



		PizzaStore chicagoStore = new PizzaStoreChicago();

		pizza = chicagoStore.orderPizza("cheese");
		System.out.println("Joel ordered a " + pizza + "\n");
		pizza = chicagoStore.orderPizza("clam");
		System.out.println("Joel ordered a " + pizza + "\n");
		pizza = chicagoStore.orderPizza("pepperoni");
		System.out.println("Joel ordered a " + pizza + "\n");
		pizza = chicagoStore.orderPizza("veggie");
		System.out.println("Joel ordered a " + pizza + "\n");
	}
}
